#ifndef BEGINHALL_H
#define BEGINHALL_H

#include <QWidget>

enum class Derection
{
    UP=0,
    DOWN,
    LEFT,
    RIGHT
};

class BeginHall : public QWidget
{
    Q_OBJECT
public:
    explicit BeginHall(QWidget *parent = nullptr);
    void paintEvent(QPaintEvent *event);
    void moveUp();
    void moveDown();
    void moveLeft();
    void moveRight();
    bool chechFail();
    void creatFoot();
signals:

    private:
    const int snackWidth=20;
    const int snackHeight = 20;
    QList<QRectF> snackList;
    QTimer*timer;
    QRectF footRect;
    bool isFail = false;
    Derection derection = Derection::UP;



};

#endif // BEGINHALL_H
